package com.luhaoran.hrm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * @author haoranlu
 * @project IntelliJ IDEA
 */
@Data
public class Department {
    @TableId(value = "id",type = IdType.AUTO) //指定哪个属性是主键，IdType.AUTO表示该主键为自增长

    private Integer id;

    private String name;

    private Integer sort;
}
